package com.duowei.diandan.db.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;

import com.duowei.diandan.db.entry.Dpzsz;

import java.util.List;

@Dao
public interface DpzszDao {

    @Query("SELECT * FROM dpzsz WHERE bm = :bm AND fxhj<>'1' LIMIT 1")
    Dpzsz findByBm(String bm);

    @Insert
    void insert(List<Dpzsz> list);

    @Query("DELETE FROM dpzsz")
    void deleteAll();
}
